using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Diagnostics;

namespace Woz
{
    public partial class SplashForm : Form
    {
        public SplashForm(bool pFromHelpAbout)
        {
            InitializeComponent();

            // add a callback to the close button
            this.mButtonClose.Click += new EventHandler(this.mCloseButtonClicked);

            if(pFromHelpAbout)
            {
                // hide the status label
                this.mLabelStatus.Visible = false;

                // show the details and close button
                this.mLabelDetails.Visible = true;
                this.mButtonClose.Visible = true;
            }
        }
	
        public string StatusLabelText
        {
            get
            {
                return this.mLabelStatus.Text;
            }

            set
            {
                this.mLabelStatus.Text = value;
            }
        }

        private void mCloseButtonClicked(object pSender, EventArgs pEventArgs)
        {
            // merely close the form
            this.Close();
        }

        private void mLinkLabel_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            // just launch a browser pointing to the VEUPL site.
            Process.Start("http://eecs.wsu.edu/~veupl");
        }
    }
}